<?php $this->_Hhead();?>
<link href="/Public/Home/public/all_common.css" rel="stylesheet" type="text/css">
<div class="container" id="container">
    <h3 class="pro-title">商品列表</h3>
    <div class="filter-lists">
        <dl class="xlj-filter-list xlj-filter-list-first category-filter-list clearfix">
            <dt>商品分类：</dt>
            <dd>
                <ul id="typeCat" class="clearfix">
                    <?php foreach($fl as $v){?>
                        <li>
                            <a href="/index.php?C=Index&F=goods_list&type=2&key=<?php echo $v['id']?>">
                                <?php echo $v['name']?>
                            </a>
                        </li>
                    <?php }?>
                </ul>
            </dd>
        </dl>
        <dl class="xlj-filter-list  category-filter-list clearfix">
            <dt>所属栏目：</dt>
            <dd>
                <ul class="clearfix">
                    <?php foreach($lm as $v){?>
                    <li class=" ">
                        <a href="/index.php?C=Index&F=goods_list&type=1&key=<?php echo $v['id']?>"><?php echo $v['name']?></a>
                    </li>
                    <?php }?>
                </ul>
            </dd>
        </dl>
    </div>
    <!--排序-->
    <div class="xlj-fitting">
        <span>排序方式：</span>
        <ul>
            <li>
                <a href="<?php
                     $str='/index.php?C=Index&F=goods_list&type='.$_GET['type'].'&key='.$_GET['key'];
                     if($_GET['order']=='money'&&$_GET['otype']=='asc'){
                        $str.='&order=money&otype=desc';
                     }else{
                        $str.='&order=money&otype=asc';
                     }
                     echo $str;
                 ?>">
                    <i style="line-height: 10px;">
                        <!--升序-->
                        <?php if($_GET['order']=='money'&&$_GET['otype']=='asc'){?>
                            <img src="http://www.xiaolajiao.com/themes/newxlj/images/up.jpg">
                        <?php }else if($_GET['order']=='money'&& $_GET['otype']=='desc'){?>
                            <!--降序-->
                            <img src="http://www.xiaolajiao.com/themes/newxlj/images/down.jpg">
                       <?php }?>
                    </i>
                    按价格高低
                </a>
            </li>

            <li>
                <a href="<?php
                     $str='/index.php?C=Index&F=goods_list&type='.$_GET['type'].'&key='.$_GET['key'];
                     if($_GET['order']=='time'&&$_GET['otype']=='asc'){
                        $str.='&order=time&otype=desc';
                     }else{
                        $str.='&order=time&otype=asc';
                     }
                     echo $str;
                 ?>">
                    <i style="line-height: 10px;">
                        <!--升序-->
                        <?php if($_GET['order']=='time'&&$_GET['otype']=='asc'){?>
                        <img src="http://www.xiaolajiao.com/themes/newxlj/images/up.jpg">
                        <?php }else if($_GET['order']=='time'&& $_GET['otype']=='desc'){?>
                        <!--降序-->
                        <img src="http://www.xiaolajiao.com/themes/newxlj/images/down.jpg">
                        <?php }?>
                    </i>
                    按上架时间
                </a>
            </li>
        </ul>
    </div>


    <div class="fitting-list-box clearfix">
        <div class="fitting-box">
            <ul>
                <?php foreach($goods as $v){?>
                    <li class="tehui">
                    <div class="item-content" id="list_509">
                        <a class="fitting-img" href="/index.php?C=Index&F=goods_msg&id=<?php echo $v['id']?>"
                           title="<?php echo $v['name']?>">

                            <img id="cart_509" src="<?php echo substr(strrchr($v['img'], '|'),1)?>"
                                                          alt="<?php echo $v['name']?>">
                        </a>
                        <span class="item-title"><?php echo $v['name']?></span>
                        <span class="item-price">￥<?php echo $v['money']?> 元</span>
                    </div>
                </li>
                <?php }?>
            </ul>
        </div>
    </div>


    <div id="pager" class="pagebar">
        <a href="<?php echo '/index.php?C=Index&F=goods_list&type='.$_GET['type'].'&key='.$_GET['key'].'&page='.$syy;?>" class="no">&lt;</a>

        <a class="no" href="<?php echo '/index.php?C=Index&F=goods_list&type='.$_GET['type'].'&key='.$_GET['key'].'&page='.$xyy;?>">&gt;</a>
    </div>


</div>


<?php $this->_Hfooter();?>